package com.example.springbootwebsocket.controller;

import com.example.springbootwebsocket.service.WebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestController {
    @Autowired
    private WebSocketServer webSocketServer;
    @GetMapping("/queryOnlineCount")
    public String queryOnlineCount() {
        webSocketServer.queryOnlineCount();
        return null;
    }
}
